home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
cattool
/
cntnts20.zip
/
CONTENTS.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-18
|
2KB
|
71 lines
echo off
cls
echo List the Filenames of a Selected Disk to CONTDISK/FILE.SRT on Specified Disk/DIR
echo.
if not x==%1x goto GO
echo TYPE: "%0" followed by [Drive:] [Diskname] [Location for CONTENTS files]
echo NOTE: Diskname MUST be from five to seven (5-7) characters long, and contain
echo NO spaces to insure proper sorting. (i.e. "a: A0001 c:\list")
goto END
:GO
echo You have indicated the Directory of %1 to be named "%2" and
echo CONTENTS Files to be written on Drive %3. Is this correct?
elf
if errorlevel 255 goto END
echo.
echo Do you wish to View Directory of %1 ?
elf
if errorlevel 255 goto :LABEL
dir/p %1
:LABEL
echo.
echo Do you wish to LABEL disk in Drive %1 ?
elf
if errorlevel 255 goto :CONT
vl %1
:CONT
echo.
echo Do you want to CONTINUE ?
elf
if errorlevel 255 goto :END
echo.
echo Updating/writing %3\CONTENTS.LST. Please wait . . .
cd %1
%1\
for %%f in (*.*) do echo %2 %4 %5 %%f >> %3\contents.lst
C:
CD\
echo.
echo View current CONTENTS.LST in Drive %3 ?
elf
if errorlevel 255 goto :SORT
list %3\contents.lst
:SORT
echo.
echo Sort CONTENTS.LST by Diskname and Filename?
elf
if errorlevel 255 goto :NAM
echo Sorting CONTENTS.LST. Writing CONTDISK.SRT and CONTFILE.SRT. Please wait . . .
sort /+8 < %3\contents.lst > %3\contfile.srt
sort /+1 < %3\contents.lst > %3\contdisk.srt
echo.
echo Do you wish to Columnize CONTFILE.SRT?
elf
if errorlevel 255 goto :NAM
cd %3
%3\
xup
C:
CD\
:NAM
echo.
echo Do you wish to Columnize CONTDISK.SRT?
elf
if errorlevel 255 goto :END
cd %3
%3\
xup
C:
CD\
:END